﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FRL.DebtChased.PlugInCheck
{

	/// <summary>
	/// Declaration  of MainPage class
	/// </summary>
	public partial class MainPage : UserControl
	{

		// Construction
		public MainPage()
		{

			// Load xaml resources
			InitializeComponent();

			// Start animations
			animBlockA0.Completed += new EventHandler(animBlockA0_Completed);
			animBlockA1.Completed += new EventHandler(animBlockA1_Completed);
			animBlockB0.Completed += new EventHandler(animBlockB0_Completed);
			animBlockB1.Completed += new EventHandler(animBlockB1_Completed);
			animBlockC0.Completed += new EventHandler(animBlockC0_Completed);
			animBlockC1.Completed += new EventHandler(animBlockC1_Completed);

			// Start block animation
			animBlockA0.Begin();

			// Start flying currencies
			signAnimA0.Begin();

		}

		void animBlockA0_Completed(object sender, EventArgs e) { animBlockA1.Begin(); animBlockB0.Begin(); }
		void animBlockA1_Completed(object sender, EventArgs e) { }

		void animBlockB0_Completed(object sender, EventArgs e) { animBlockB1.Begin(); animBlockC0.Begin(); }
		void animBlockB1_Completed(object sender, EventArgs e) {  }

		void animBlockC0_Completed(object sender, EventArgs e) { animBlockC1.Begin(); animBlockA0.Begin(); }
		void animBlockC1_Completed(object sender, EventArgs e) {  }

	}

}
